<?php
/**
 * Default front layout main page
 * 
 * @author          kim
 * @version         1.0
 */

require_once('Zend/Date.php');

$this->headTitle($this->T('X-admin'), 'PREPEND');
$this->headTitle()->setSeparator(' - ');

$this->headMeta()->appendName('Keywords', $this->T('Admin-Keywords'));
$this->headMeta()->appendName('Description', $this->T('Admin-Description'));

$this->headMeta()->appendName('Robots', 'All');
$this->headMeta()->appendName('Author', 'xqpmxqpm@126.com');
$this->headMeta()->appendName('Generator', 'EditPlus 3.0');
$this->headMeta()->appendName('Copyright', 'Copyright ' . $this->D(null, false, Zend_Date::YEAR) . ' kim. All Rights Reserved');

$this->headMeta()->appendName('Accept-Encoding', 'gzip, deflate');
$this->headMeta()->appendName('Content-Encoding', 'gzip');
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=' . $this->charset);
//$this->headMeta()->appendHttpEquiv('Content-Language', 'en-US');
//$this->headMeta()->appendHttpEquiv('Content-Language', 'zh-CN');

$this->headMeta()->appendHttpEquiv('Date', gmdate('D, d M Y H:i:s', time()) . ' GMT');
$this->headMeta()->appendHttpEquiv('Last-Modified', gmdate('D, d M Y H:i:s', time()) . ' GMT');
$this->headMeta()->appendHttpEquiv('Expires', gmdate('D, d M Y H:i:s', time() - 3600) . ' GMT');
$this->headMeta()->appendHttpEquiv('Pragma', 'no-cache');
$this->headMeta()->appendHttpEquiv('Cache-Control', 'no-cache');
$this->headMeta()->appendHttpEquiv('Refresh', '');

$this->headMeta()->appendHttpEquiv('Widow-target', '_top');
$this->headMeta()->appendHttpEquiv('Content-Script-Type', 'text/javascript');

//$this->headMeta()->appendHttpEquiv('Site-Enter', 'revealTrans(Duration=3,Transition=1)');
//$this->headMeta()->appendHttpEquiv('Page-Exit', 'blendTrans(Duration=0.5)');

$this->headLink()->prependStylesheet($this->pathCss);
$this->headLink(array('type' => 'image/x-icon',
                      'href' => $this->pathImages . '/icons/duoduo.ico',
                      'rel'  => 'SHORTCUT ICON',
                      'PREPEND'));

echo $this->docType('HTML4_STRICT');

?>

<html>

    <head>
        <?php
        echo $this->headTitle() . PHP_EOL;
        echo $this->headMeta() . PHP_EOL;
        echo $this->headLink() . PHP_EOL;
        echo $this->headStyle() . PHP_EOL;
        echo $this->headScript() . PHP_EOL;
        ?>
    </head>

    <body onload="<?php echo $this->placeholder('body_onload');?>" class="<?php echo $this->placeholder('body_theme');?>">

        <div id="container">

            <div id="top">

                <div id="header" class="fixed">

                    <div id="header_a"><?php echo $this->render('header.phtml'); ?></div>

                </div>
                
            </div>
        
            <div id="central">
                
                <div id="main" class="fixed">

                    <div id="main_inner">

                        <div id="main_content">

                            <?php echo $this->layout()->helperMessage; ?>

                            <h1><?php echo $this->placeholder('content_title');?></h1>

                            <h4><?php echo $this->placeholder('flash_message');?></h4>

                            <?php echo $this->layout()->content; ?>
                            
                        </div>
                        
                    </div>                        
                    
                    <div id="main_sidebar">
                    
                        <div id="main_sidebar_a"><?php echo $this->render('rightOne.phtml'); ?></div>
                        <div id="main_sidebar_b"><?php echo $this->render('rightTwo.phtml'); ?></div>
                    
                    </div>
                    
                    <br class="clear" />

                </div>
                
            </div>
            
            <div id="bottom">
            
                <div id="footer">
                    
                    <div id="footer_a"><?php echo $this->render('footer.phtml'); ?></div>

                </div>
            
            </div>
        
        </div>

<?php 
echo PHP_EOL . $this->inlineScript() . PHP_EOL;
?>

    </body>

</html>